export enum Lang {
	en = 'en',
	zh = 'zh',
	zhTW = 'zhTW'
}

// 这里是提交给服务端需要的语言关键字格式
export const LangApiHeader = <Record<Lang, string>>{
	en: 'EN',
	zh: 'ZH',
	zhTW: 'ZH_TW'
}
export const LangGameFormat = <Record<Lang, string>>{
	en: 'en_US',
	zh: 'zh_CN',
	zhTW: 'zh_TW'
}
export const LangList = Object.values(Lang)

export const routerLang = `/:locale(${LangList.join('|')})?`
